<?php
$ci = &get_instance();
?>
<style>
    #controles{
        float: left;
            width: 30%;
        
    }
    #derecha{
        width: 50%;
       font-size: 12px;
float:left;
    }
    .titulo{
        font-weight: bold;
    }
.box{
box-sizing: border-box;
min-height: 105.66667px;
padding: 9px 9px 9px 9px;
margin-bottom: 13px;
    border: 1px solid #cacccd;
display: inline-block;
text-align: left;
vertical-align: top;
width: 280px;
padding-bottom: 9px;
position: relative;
background: #fff;
-moz-box-shadow: 0 1px 4px rgba(0,0,0,0.2);
-webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.2);
-o-box-shadow: 0 1px 4px rgba(0,0,0,0.2);
box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.imgCurso{
        width: 20%;
    float: left;
}
</style>
<body onload="">
    <div class="container contenido" >
        <div class="row-fluid">
              <? $ci->load->view("profile/left_usuario"); ?>

            <div class="span7" >

                <div id="fila">
                    <h2>Listado de Cursos</h2>
                </div>
                <?php
                
                if (count($lista) == 0) {
                    ?> 
                    <br><br> Aun no has publicado cursos. 
                    <a class="btn btn-siguiente" href="<?=base_url("registro/tu_curso")?>">Quiero publicar</a>
                    <?php
                }
                ?>
                <div style="float:right ; width: 40%; text-align:right;color:#67717a;margin:0px;padding:0px;vertical-align:top; "><?php echo $paginacion ?></div>
               
                
                <div class="contenido">
                    <?php foreach ($lista as $row) {?> 
                        <div id="fila" class='box'>
                            <div class='imgCurso' >
 
                                <a href="<?= site_url('courses/view/' . $row->slug) ?>">
                                <img src="<? echo getFotoFlick($row->foto ,"_s"  ); ?>"></a>
                           
                            </div>
                            <div id="derecha">
                                <p class='titulo'>  <a href="<?= site_url('courses/view/' . $row->slug) ?>" target="_blank"><?php echo $row->titulo; ?></a></p>
             
                                <p> <?php echo $row->descripcion_corta ?></p>
               
                               
                            </div>
                            <div id="controles">
                            
                                <a target="_black"  href="<?= site_url('courses/view/' . $row->slug) ?>">Ver</a>
                               
                                 
                            </div>
                        </div>
                      <?php } ?>
                    <div class="pagination">
                        <ul>
                        <?php echo $paginacion ?>
                        </ul>
                    </div>

                </div>
            </div>

        </div>
    </div>
</div>
</body>
